package com.bwie.controller;

import com.bwie.service.UserService;
import com.bwie.utils.R;
import com.bwie.vo.LoginVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Title:
 * @BelongProjecet practice2
 * @BelongPackage com.bwie.controller
 * @Description:
 * @Copyright 研发一部
 * @Author: Mr.yan
 * @Date: 2024/6/7 9:38
 * @Version V1.0
 */
@RestController
@RequestMapping(value = "/user/user")
@Slf4j
public class UserController {
    @Autowired
    private UserService userService;

    /**
     * @Description: //TODO
     * @Auther: yanxingru
     * @Date: 2024/6/7 9:44
     * @param: 登录操作
     * @param loginVo
     * @return com.bwie.utils.R
     */
    @PostMapping("/userLogin")
    public R userLogin(
            @RequestBody LoginVo loginVo
            ){
        return userService.userLogin(loginVo);
    }


}
